<?php
require('HttpClient.class.php');
$client = new HttpClient('www.jcu.edu.au');
$client->setDebug(false);
if (!$client->get('/archives/umdergrad-bulletins/maillist.shtml')) {
    die('An error occurred: '.$client->getError());
}
if ($client->getStatus() == '404') {
    echo 'Page does not exist!';
}
$pageContents = $client->getContent();
?>
